//
//  ViewController.m
//  Animation
//
//  Created by Angela on 16/8/11.
//  Copyright © 2016年 Angela. All rights reserved.
//

#import "ViewController.h"
#import "TranslationViewController.h"
#import "ScaleViewController.h"
#import "RotateViewController.h"
#import "DynamicViewController.h"
#import "CatchViewController.h"
#import "BitmapViewController.h"
#import "Quartz2DViewController.h"
//波浪动画
#import "SXSWaveVC.h"
#import "AppDelegate.h"
//popView动画
#import "SXSPopImageVC.h"
//文字渐变动画
#import "RQShineLabelVC.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor grayColor];
    
}
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    TranslationViewController *translationVC=[[TranslationViewController alloc]init];
    ScaleViewController *scaleVC=[[ScaleViewController alloc]init];
    RotateViewController *rotateVC=[[RotateViewController alloc]init];
    DynamicViewController *dynamicVC=[[DynamicViewController alloc]init];
    CatchViewController *catchVC=[[CatchViewController alloc]init];
    BitmapViewController *bitmapVC=[[BitmapViewController alloc]init];
    Quartz2DViewController *quartzVC=[[Quartz2DViewController alloc]init];
    SXSPopImageVC *popVC=[[SXSPopImageVC alloc]init];
    RQShineLabelVC *rqVC=[[RQShineLabelVC alloc]init];
//    [self.navigationController pushViewController:rqVC animated:YES ];

    /***********波浪动画*************/
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
    UITabBarController *tab = [[UITabBarController alloc] init];
    tab.tabBar.tintColor = [UIColor redColor];
    SXSWaveVC *vc = [SXSWaveVC new];
    vc.navigationItem.title = @"波动";
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vc];
    [nav.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
    nav.navigationBar.shadowImage = [UIImage new];
    UIColor *textColor = [UIColor whiteColor];
    nav.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:textColor,NSFontAttributeName:[UIFont fontWithName:@"AppleGothic" size:20]};
    [tab addChildViewController:nav];
    ((AppDelegate *)([UIApplication sharedApplication]).delegate).window.rootViewController = tab;

}


@end
